settings.outformat = "pdf";
size(3cm, 0);
path p = box((0, 0), (1, 1));
draw(p, black + linewidth(2.0pt));
draw(shift(1, 2) * p, blue);
draw(xscale(1.6) * p, green);
draw(yscale(1.4) * p, orange);
draw(scale(1.8) * p, red);
draw(rotate(60) * p, purple); /*Rotate 60 degrees*/